home *** CD-ROM | disk | FTP | other *** search
/ Draw 3 / Draw 3.iso / AOL90 / COMP02.000 / %MAINDIR% / CalendarResource.dll / HTML / 105 < prev    next >
Encoding:
Text File  |  2004-11-29  |  1.6 KB  |  60 lines

  1. <HTML>
  2. <HEAD>
  3.  
  4. <LINK REL="stylesheet" TYPE="text/css" HREF="res:IDS_ACDialogs" > </LINK>
  5.  
  6.     <SCRIPT LANGUAGE="javascript" >
  7.  
  8.     //---------------------------------------------------------------------------------------
  9.     //      DoOnClick
  10.     //---------------------------------------------------------------------------------------
  11.     function DoOnClick()
  12.     {
  13.         var src = window.event.srcElement;
  14.         var isLink = false;
  15.         var toTarget;
  16.         if (src.tagName == "a" || src.tagName == "A" )
  17.         {
  18.             isLink = true;
  19.             toTarget = src.href;
  20.         }
  21.         else if(src.parentElement.tagName== "a" || src.parentElement.tagName == "A")
  22.         {
  23.             isLink = true;
  24.             toTarget = src.parentElement.href;
  25.         }
  26.         if (isLink == true && toTarget != "")
  27.         {
  28.             if (! (window.external.InternetConnectionIsOpen()) )
  29.             {
  30.                 window.external.DoUserSignOn("ClickToAdd", toTarget);
  31.             }
  32.             else
  33.             {
  34.                 window.external.AOLGoToURL (toTarget);
  35.             }
  36.             window.event.returnValue = false;
  37.         }
  38.     }
  39.  
  40.     </SCRIPT>
  41.  
  42. </HEAD>
  43.  
  44. <BODY oncontextmenu="window.event.returnValue=false;" onclick="DoOnClick()"
  45.     class="ctaBODY" id="ApptDialogBody" style="margin:0px;" scroll="no">
  46.  
  47. <!-- Click to Add Field -->
  48. <DIV id = "ClickToAdd", name="ClickToAdd" style="background-color:white; height:100%;"> 
  49. The content of this DIV tag is replaced by the real content
  50. of the CTA event. The user never sees this text.
  51. The following link is a  test link, which can be used
  52. to test that the signon-on-click logic is working,
  53. by single-stepping around the code that
  54. replaces the content of this DIV. 
  55. <a href="http://www.aol.com">Test link.</a>
  56. </DIV>
  57.  
  58. </BODY>
  59. </HTML>
  60.